package com.yang.controller;

import com.yang.domain.Result;
import com.yang.service.LinkService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("link")
@RestController
public class LinkController {
    @Resource
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public Result getAllLink(){
        return linkService.getAllLink();
    }
}
